<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>后台系统</title>
    <#assign base=request.contextPath  />
    <link rel="stylesheet" href="${base}/frame/layui/css/layui.css">
    <link rel="stylesheet" href="${base}/frame/static/css/style.css">
    <script type="text/javascript" src="${base}/frame/layui/layui.js"></script>
    <script type="text/javascript" src="${base}/frame/static/js/vip_comm.js"></script>
    <script src="${base}/js/jquery/jquery.min.js"></script>
    <style type="text/css">
        #logInfo{
            position: relative;
            right:60px;
        }
        #login{
            position: relative;
            right:60px;
        }

    </style>
</head>
<body class="layui-layout-body">

<script>
    //控制跳出ifream框架
    if (window != top)
        top.location.href = location.href;
</script>
<!-- layout admin -->
<div class="layui-layout-admin layui-layout" >
    <!-- header -->
    <div class="layui-header my-header">

        <div class="layui-logo"  style="font-size: 24px; margin-left: 20px; "><#--<img src="${base}/image/001.jpg" id="img001">-->后台管理系统</div>
        <ul class="layui-nav layui-layout-left">
        <#--<li class="layui-nav-item"><a href="">控制台</a></li>
        <li class="layui-nav-item"><a href="">商品管理</a></li>
        <li class="layui-nav-item"><a href="">用户</a></li>-->
        <#--<li class="layui-nav-item">
            <a href="javascript:;">其它系统</a>
            <dl class="layui-nav-child">
                <dd><a href="">邮件管理</a></dd>
                <dd><a href="">消息管理</a></dd>
                <dd><a href="">授权管理</a></dd>
            </dl>
        </li>-->
        </ul>
        <ul class="layui-nav layui-layout-right">
            <li class="layui-nav-item"><a href="javascript:;" class="pay" href-url=""><span id="logInfo"></span></a></li>
            <li class="layui-nav-item" id="login" >
                <a class="name" href="javascript:;"><i id="name" class="layui-icon layui-icon-friends" style="font-size: 20px; color: white;">
                ${user.phone}
                </i>
                    <dl class="layui-nav-child" >
                    <#--<dd><a href="">基本资料</a></dd>
                    <dd><a href="">安全设置</a></dd>-->
                        <dd><a  href="${base}/main/login.html" style="position: relative; left:20px;">退出系统</a></dd>
                    </dl>
            </li>

        </ul>
    </div>
    <!-- side -->
    <div class="layui-side my-side" >
        <div class="layui-side-scroll">
            <!-- 左侧主菜单添加选项卡监听 -->
            <ul class="layui-nav layui-nav-tree" lay-filter="side-main">

                <li class="layui-nav-item layui-this">
                    <a href="javascript:;"  href-url="${base}/admin/welcome.html"><i class="layui-icon">&#xe613;</i>管理</a>
                <#--<dl class="layui-nav-child">-->
                <#--<dd><a href="javascript:;" href-url="${base}/main/item.html"><i class="layui-icon">&#xe60b;</i>题库</a></dd>-->
                <#--</dl>-->
                </li>

                <li class="layui-nav-item">
                    <a href="javascript:;"><i class="layui-icon">&#x1007;</i>禁用管理</a>
                    <dl class="layui-nav-child">
                        <dd><a href="javascript:;" href-url="${base}/user/jin.html"><i class="layui-icon">&#x1007;</i>禁用管理</a></dd>
                    </dl>
                </li>


            </ul>
        </div>
    </div>
    <!-- 欢迎页 -->
    <div class="layui-body my-body" >
        <div class="layui-tab layui-tab-card my-tab" lay-filter="card" lay-allowClose="true">
            <ul class="layui-tab-title">
                <li class="layui-this" lay-id="1"><span><i class="layui-icon">&#xe638;</i> </span></li>
            </ul>
            <div class="layui-tab-content">
                <div class="layui-tab-item layui-show">
                    <iframe id="iframe" src="${base}/admin/welcome.html" frameborder="0"></iframe>
                </div>
            </div>
        </div>
    </div>
</div>
<!-- pay -->
<!-- 右键菜单 -->
<div class="my-dblclick-box none">
    <table class="layui-tab dblclick-tab">
        <tr class="card-refresh">
            <td><i class="layui-icon">&#x1002;</i>刷新当前标签</td>
        </tr>
        <tr class="card-close">
            <td><i class="layui-icon">&#x1006;</i>关闭当前标签</td>
        </tr>
        <tr class="card-close-all">
            <td><i class="layui-icon">&#x1006;</i>关闭所有标签</td>
        </tr>
    </table>
</div>
<script language="javascript">
    function getCurDate() {
        var d = new Date();
        var week;
        switch(d.getDay()) {
            case 1:week = "星期一";break;
            case 2:week = "星期二";break;
            case 3:week = "星期三";break;
            case 4:week = "星期四";break;
            case 5:week = "星期五";break;
            case 6:week = "星期六";break;
            default:week = "星期天";
        }
        var years = d.getFullYear();
        var month = add_zero(d.getMonth() + 1);
        var days = add_zero(d.getDate());
        var hours = add_zero(d.getHours());
        var minutes = add_zero(d.getMinutes());
        var seconds = add_zero(d.getSeconds());
        var ndate = years + "年" + month + "月" + days + "日 " + hours + ":" + minutes + ":" + seconds + " " + week;
        var divT = document.getElementById("logInfo");
        divT.innerHTML = ndate;
    }

    function add_zero(temp) {
        if(temp < 10) return "0" + temp;
        else return temp;
    }
    setInterval("getCurDate()", 100);
</script>
</body>
</html>